
import requests

url = "http://127.0.0.1:8000/sec2/lesson1_2_data_api?page=2"

payload = {}
headers = {
  'Cookie': 'sessionid=oljclsn1o1bioe9pk06tj1map2f94lyd',
  'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/123.0.0.0 Safari/537.36',

}
# resp = requests.get("http://127.0.0.1:8000/sec2/lesson1_2",headers=headers)

response = requests.request("GET", url, headers=headers, data=payload)

print(response.text)
